import unittest,time
from selenium import webdriver
from Page1 import Page1
from Page2 import Page2
from Page3 import Page3
class TetCase(unittest.TestCase):

    def setUp(self) -> None:
        self.driver = webdriver.Firefox()
        self.driver.maximize_window()

    def tearDown(self) -> None:
        time.sleep(3)
        self.driver.quit()

    def test_jiuxian(self):
        po = Page1(self.driver)
        po.luoji_jiuxian()
        po.login()
        po.user()
        po.password()
        po.loginbtn()

    def test_jiuxiann(self):
        po = Page2(self.driver)
        po.sousuo()
        po.sousuobtn()
        time.sleep(3)
        po.spxq()
        po.window()
        po.jiaru()
        time.sleep(3)

    def test_jiuxiannn(self):
        po = Page3(self.driver)
        po.sousuo()
        po.sousuobtn()
        time.sleep(3)
        po.spxq()
        po.window()
        po.shoucang()
        time.sleep(3)

if __name__ == '__main__':
    unittest.main()
